package com.xiaolin.designmode.factory.method;

/**
 * @ClassName MethodFactoryTest
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/7/18
 * @Version 1.0
 */
public class MethodFactoryTest {
    public static void main(String[] args) {
        MethodFactory huawei=new HuaweiMethodFactory();
        MethodFactory xiaomi=new XiaomiMethodFactory();
        huawei.makePhone().name();
        xiaomi.makePhone().name();
    }
}
